package com.micro.center.controller;

import com.micro.center.service.SysDictService;
import com.micro.common.constant.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author pan.shun
 * @version 2.0
 * @since 2022/7/13 19:55
 */
@RestController
@RequestMapping("/dict")
public class SysDictController {

    @Autowired
    private SysDictService service;

    @GetMapping("/getDictByCode")
    public R getDictByCode(String dictCode, String appId) {
        return service.getDictByCode(dictCode,appId);
    }
}
